<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html>
	<head>
		<title>课程页面</title>
		<script type="text/JavaScript" src="../../../static/js/quizMethod.js"></script>
		<script type="text/JavaScript" src="../../../static/js/Cookie.js"></script>
		<link href="https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap" rel="stylesheet">
		<link type="text/css" href="../../../static/css/question.css" rel="stylesheet">
	</head>

	<body onload="checkCookie('username')">
		<div class="container">
		<form method="post" action="/submit_Question" onsubmit="return submitForm()" name="form" id="questionForm">
			<input type="hidden" value="" name="username" id="cookie">
			<input type="hidden" value="choiceqa" name="database">	
			<div class="question">
				<p>1. (单选题, 4.0 分) Choose the following codes' output:</p>
				<div>
					<pre>
						<code>
						<h1>
int i1 = 3;
++i1;
System.out.println(++i1);
System.out.println(i1++);
						</h1>
						</code>
					</pre>
				</div>
	
		<!-- Record the type/label of this question -->
		 <div clsss="options">
			<input type="hidden" value="1" name="sequence1" />
			<input type="hidden" value="type1" name="Qtype1"/>
			<input type="hidden" value="B" name="answer1" />
			<input type="radio" id="optionA" name="cQ0" value="A">
			<label for="optionA">A.
				<pre><h2 style="font-size:20px">
	4
	6
				</h2></pre>
			</label>
			
			<input type="radio" id="optionB" name="cQ0" value="B">
			<label for="optionB">B.
				<pre><h2 style="font-size:20px">
	5
	5
				</h2></pre>
			</label>
			
			<input type="radio" id="optionC" name="cQ0" value="C">
			<label for="optionC">C.
				<pre><h2 style="font-size:20px">
	5
	6
				</h2></pre>
			</label>
			
			<input type="radio" id="optionD" name="cQ0" value="D">
			<label for="optionD">D.
				<pre><h2 style="font-size:20px">
	4
	5
				</h2></pre>
			</label>
			</div>
			<div id="result1"></div>
			</div>
			
			<div class="question">
				<p>2. (单选题, 4.0 分) Choose the following codes' output:</p>
				<div>
					<pre>
						<code>
						<h1>
public class MyClass {
static int count = 0;
public MyClass() {
count++;
}
public static void main(String[] args) {
MyClass obj1 = new MyClass();
MyClass obj2 = new MyClass();
System.out.println(count);
}
}
						</h1>
						</code>
					</pre>
				</div>
			
			<div clsss="options">
			<input type="hidden" value="2" name="sequence2" />
			<input type="hidden" value="B" name="answer2" />
			<input type="hidden" value="type2" name="Qtype2"/>
			<input type="radio" id="option2A" name="cQ1" value="A" />
			<label for="option2A">A.
				<pre><h2 style="font-size:20px">
	1
				</h2></pre>
			</label>
			
			<input type="radio" id="option2B" name="cQ1" value="B" />
			<label for="option2B">B.
				<pre><h2 style="font-size:20px">
	2
				</h2></pre>
			</label>
			
			<input type="radio" id="option2C" name="cQ1" value="C" />
			<label for="option2C">C.
				<pre><h2 style="font-size:20px">
	0
				</h2></pre>
			</label>
			
			<input type="radio" id="option2D" name="cQ1" value="D" />
			<label for="option2D">D.
				<pre><h2 style="font-size:20px">
	Compiler Error
				</h2></pre>
			</label>
			</div>
			<div id="result2"></div>
			</div>
			
			
		<div class="question">
			<p>3. (单选题, 4.0 分) Choose the following codes' output:</p>
			<div>
				<pre>
					<code>
					<h1>
public class ArrayExample {
public static void main(String[] args) {
int[] arr = new int[3];
System.out.println(arr[0]);
}
}
					</h1>
					</code>
				</pre>
			</div>
			<div clsss="options">
			<input type="hidden" value="3" name="sequence3" />
			<input type="hidden" value="C" name="answer3" />
			<input type="hidden" value="type3" name="Qtype3"/>
			<input type="radio" id="option3A" name="cQ2" value="A" />
			<label for="option3A">A.
				<pre><h2 style="font-size:20px">
	1
				</h2></pre>
			</label>
			
			<input type="radio" id="option3B" name="cQ2" value="B" />
			<label for="option3B">B.
				<pre><h2 style="font-size:20px">
	null
				</h2></pre>
			</label>
			
			<input type="radio" id="option3C" name="cQ2" value="C" />
			<label for="option3C">C.
				<pre><h2 style="font-size:20px">
	0
				</h2></pre>
			</label>
			
			<input type="radio" id="option3D" name="cQ2" value="D" />
			<label for="option3D">D.
				<pre><h2 style="font-size:20px">
	Compiler Error
				</h2></pre>
			</label>
			</div>
			<div id="result3"></div>
			</div>
		
		
		<div class="question">
			<p>4. (单选题, 4.0 分) Choose the following codes' output:</p>
			<div>
				<pre>
					<code>
					<h1>
public class VariableExample {
public static void main(String[] args) {
int x = 5;
int y = 3;
System.out.println(x + y);
}	
}
					</h1>
					</code>
				</pre>
			</div>
			<div clsss="options">
			<input type="hidden" value="4" name="sequence4" />
			<input type="hidden" value="C" name="answer4" />
			<input type="hidden" value="type4" name="Qtype4"/>
			<input type="radio" id="option4A" name="cQ3" value="A" />
			<label for="option4A">A.
				<pre><h2 style="font-size:20px">
	5
				</h2></pre>
			</label>
			
			<input type="radio" id="option4B" name="cQ3" value="B" />
			<label for="option4B">B.
				<pre><h2 style="font-size:20px">
	3
				</h2></pre>
			</label>
			
			<input type="radio" id="option4C" name="cQ3" value="C" />
			<label for="option4C">C.
				<pre><h2 style="font-size:20px">
	8
				</h2></pre>
			</label>
			
			<input type="radio" id="option4D" name="cQ3" value="D" />
			<label for="option4D">D.
				<pre><h2 style="font-size:20px">
	Error
				</h2></pre>
			</label>
			</div>
			<div id="result4"></div>
			</div>

			
			
		<div class="question">
			<p>5. (单选题, 4.0 分) Choose the following codes' output:</p>
			<div>
				<pre>
					<code>
					<h1>
public class ControlIf {
public static void main(String[] args) {
int x = 10;

if(x > 5) {
System.out.println("x is greater than 5");
} else {
System.out.println("x is less than or equal to 5");
		}
	}
}
					</h1>
					</code>
				</pre>
			</div>
			<div clsss="options">
			<input type="hidden" value="5" name="sequence5" />
			<input type="hidden" value="A" name="answer5" />
			<input type="hidden" value="type5" name="Qtype5"/>
			<input type="radio" id="option5A" name="cQ4" value="A" />
			<label for="option5A">A.
				<pre><h2 style="font-size:20px">
	x is greater than 5
				</h2></pre>
			</label>
			
			<input type="radio" id="option5B" name="cQ4" value="B" />
			<label for="option5B">B.
				<pre><h2 style="font-size:20px">
	x is less than or equal to 5
				</h2></pre>
			</label>
			
			<input type="radio" id="option5C" name="cQ4" value="C" />
			<label for="option5C">C.
				<pre><h2 style="font-size:20px">
	x is 10
				</h2></pre>
			</label>
			
			<input type="radio" id="option5D" name="cQ4" value="D" />
			<label for="option5D">D.
				<pre><h2 style="font-size:20px">
	Error
				</h2></pre>
			</label>
			</div>
			<div id="result5"></div>
			</div>
			<br>
			
			<div id="submitButton">
				<button type="submit" id="submitButton" onclick="checkSelect()"><h1>Submit</h1></button>
			</div>
		</form>
		</div>
	</body>
</html>